home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / varia / egebook.lha / ege.book / 5 / Course.h < prev    next >
C/C++ Source or Header  |  1992-06-07  |  637b  |  34 lines

  1. #ifndef Course_h
  2. #define Course_h
  3.  
  4. #include <iostream.h>
  5. #include <bool.h>
  6. #include <String.h>
  7.  
  8. #include "Example.h"
  9. #include "Student.h"
  10. #include "Teacher.h"
  11. #include "Collection.h"
  12.  
  13. class Course: public Example {
  14.   String number;
  15.   String name;
  16.   int capacity;
  17. public:
  18.   static Collection *All;
  19.   Course(String nu, String na):
  20.          number(nu),name(na),capacity(25) {
  21.     All->add(this);
  22.   };
  23.   void print() {
  24.     cout << "Course: " << number << " - " << name << "\n";
  25.   };
  26.   bool identify(String &);
  27.   Example* alike(String &);
  28.   void maintain();
  29.   bool add(Example *){return FALSE;};
  30.   Example* select(){return NULL;};
  31. };
  32.  
  33. #endif
  34.